<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<f:view>
	<h:form id='form'>
		<head>
<f:loadBundle basename="messages" var="msgs" />
<title><h:outputText value="#{msgs.title}" /></title>

<style type="text/css" title="currentStyle">
	@import "${facesContext.externalContext.requestContextPath}/views/css/theme.css";
</style>
<script type="text/javascript" src="../../resources/script/jquery.js"></script>
<script type="text/javascript">
		$(document).ready(function () {
		})
		
		</script>

		</head>
		<body>
			<ui:include src="../header/header.xhtml" />

			<br />
			<br />
			<br />

			<h:outputText value="#{msg.transaction_reference_title}" />

			<p></p>


			<div id="div">
				<table class="display" id="tr_table">
					<tr>
						<td>#{msg.parent}</td>
						<td><h:selectOneMenu id="edit_category_parent"
								value="#{createTransactionReferenceBean.trGroupCode}">
								<f:selectItems value="#{createTransactionReferenceBean.trGroupList}" />
							</h:selectOneMenu></td>
					</tr>
					<tr>
						<td><h:outputLabel value="#{msg.transaction_reference_name}"></h:outputLabel></td>
						<td><h:inputText value="#{createTransactionReferenceBean.name}">
							</h:inputText></td>
					</tr>

					<tr>
						<td><h:outputLabel value="#{msg.transaction_reference_prefix}">
							</h:outputLabel></td>
						<td><h:inputText value="#{createTransactionReferenceBean.prefix }">
							</h:inputText></td>
					</tr>
					
					<tr>
						<td><h:outputLabel value="#{msg.transaction_reference_description}">
							</h:outputLabel></td>
						<td><h:inputTextarea value="#{createTransactionReferenceBean.description }">
							</h:inputTextarea></td>
					</tr>

					<tr>
						<td><h:outputLabel value="#{msg.transaction_reference_start}"></h:outputLabel></td>
						<td><h:inputText value="#{createTransactionReferenceBean.start}"></h:inputText></td>
					</tr>

					<tr>
						<td><h:outputLabel value="#{msg.transaction_reference_last}"></h:outputLabel></td>
						<td><h:inputText value="#{createTransactionReferenceBean.last }"></h:inputText></td>
					</tr>


					<tr>
						<td><h:outputLabel value="#{msg.transaction_reference_max }"></h:outputLabel>
						</td>
						<td><h:inputText value="#{createTransactionReferenceBean.max }"></h:inputText>
						</td>
					</tr>

					
					<tr>
						<td><h:commandButton value="#{msg.submit}"
								action="#{createTransactionReferenceBean.createNewTransactionReferenceAction }">
							</h:commandButton></td>
						<td><h:commandLink value="#{msg.back_to_transaction_references}"
								action="#{createTransactionReferenceBean.backToTransactionReferencesAction }" /></td>
					</tr>

				</table>

			</div>

			<p></p>
			<ui:include src="../footer/footer.xhtml" />

		</body>
	</h:form>
</f:view>
</html>
